<template>
  <div class="blog-header">
    <div class="logo-box">Hi ~ 欢迎来到我的博客！</div>
    <nav style="display: contents;">
      <ul class="list-box">
        <li>代码</li>
        <li>随笔</li>
        <li>读后感</li>
      </ul>
    </nav>
    <div class="search-box">
      <a-input-search placeholder="input search text" style="width: 200px" />
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="scss">
.blog-header {
  width: 100%;
  height: 3.5rem;
  display: flex;
  align-items: center;
  background-color: #fff;
}
.logo-box {
  padding: 0 50px;
}
.list-box {
  width: 60%;
  height: 100%;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-top: 13px !important;
  li {
    margin: 0 10px;
    padding: 5px 0;
    &:hover {
      cursor: pointer;
      border-bottom: 1px solid #5da5e0;
    }
  }
}
/* 屏幕宽度小于1280px */
@media screen and (max-width: 1280px) {
  .blog-header {
    height: 2.5rem;
  }
}
/* 屏幕宽度小于768px */
@media screen and (max-width: 768px) {
  .blog-header {
    height: 1.5rem;
  }
}
</style>
